package com.arvato.admin01.controller.order;

import com.arvato.admin01.service.order.RedisOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class RedisOrderController {

    @Autowired
    private RedisOrderService msService;

    @RequestMapping("/select_info")
    public String select_info(String product_id){
        return msService.select_info(product_id);
    }

    @RequestMapping("/order")
    public String order(String product_id) throws Exception {
        return msService.order1(product_id);
    }


}
